import Mock from 'mockjs';


export default {
  //
    className: "Sys.Model.EntityData.Capital",
    queryData: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "recordCount": 38,
                "pageCount": 1,
                "pageIndex": 1,
                "pageSize": 20,
                "queryResult|38": [{
                    "keyID|1000-9999": 1000,
                    "code": /^[a-z][a-z][a-z][a-z][a-z]$/,
                    "name": Mock.mock('@ctitle'),
                    "classifyName": /^[A-Z][a-z][a-z][a-z][a-z][A-Z][a-z][a-z][a-z][a-z]$/,
                    "type": Mock.mock('@ctitle'),
                    "source": "admin",
                    "status":"是",
                    "version": 1,
                }]
            }
        });
    },
    queryByKeyID: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
              "keyID|1000-9999": 1000,
              "code": /^[a-z][a-z][a-z][a-z][a-z]$/,
              "name": Mock.mock('@ctitle'),
              "classifyName": /^[A-Z][a-z][a-z][a-z][a-z][A-Z][a-z][a-z][a-z][a-z]$/,
              "type": Mock.mock('@ctitle'),
              "source": "admin",
              "status":"是",
              "version": 1,
            }
        });
    },
};
